<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
    </style>
</head>
<body>
    <button id="button">点击按钮</button>
    <ul id="demo"></ul>
    <script type="text/javascript">
        function getID(id) {
            return document.getElementById(id);
        }
        getID("button").onclick = function () {
            //创建新的节点
            var newLi = document.createElement("li");
            newLi.innerHTML = "王梦凡 健康！";
            getID("demo").appendChild(newLi);
        }
    </script>


</body>
</html>